<template>
  <div id="app">
    <nav class=" main-nav" v-if="$route.meta.showNav">
      <router-link  to="/home"
        ><i class="iconfont icon-shouye"></i>
        <div>首页</div>
      </router-link>
      
      <router-link to="/take">
        <i class="iconfont icon-bijiben"></i>
        <div>手记</div></router-link
      >
      <router-link to="/find">
        <i class="iconfont icon-sousuo"></i>
        <div>发现</div></router-link
      >
      <router-link to="/classroom">
        <i class="iconfont icon-ketang1"></i>
        <div>课堂</div></router-link
      >
      <router-link to="/mine">
        <i class="iconfont icon-wode"></i>
        <div>我的</div></router-link
      >
    </nav>
    <router-view />
  </div>
</template>
<script>
export default {


  
};
</script>
<style lang="less" scoped>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  color: #2c3e50;
  position: relative;

}

 .main-nav {
  position: fixed;
  z-index: 9;
  width: 100%;
  bottom: 0;
  left: 0;
  background: whitesmoke;
  display: flex;
  justify-content: space-evenly;
  padding: 5px 0;
  align-items: center;
  a {
    font-weight: bold;
    color: #999;
    
  
    &.router-link-active {
      color: black;
    }
    i {
      text-align: center;
      font-size: 20px;
    }
    div{
      text-align: center;
      font-size: 10px;
    }
  }
}
</style>
